package org.lx.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.lx.nursing.domain.NursingTask;
import org.lx.nursing.dto.NursingTaskDto;
import org.lx.nursing.vo.NursingTaskVo;

import java.util.List;

@Mapper
public interface NursingTaskMapper extends BaseMapper<NursingTask> {
    NursingTaskVo selectNursingTaskById(Long id);

    List<NursingTaskVo> selectNursingTaskList(NursingTaskDto dto);

    int insertNursingTask(NursingTask nursingTask);

    int updateNursingTask(NursingTask nursingTask);

    int deleteNursingTaskById(Long id);

    int deleteNursingTaskByIds(Long[] ids);

    List<String> selectNameById(Long projectId);

    int cancelTask(NursingTaskDto dto);
}
